package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: itcast_health
 * @BelongsPackage: com.itheima.health.dao
 * @Author: ${Shiu}
 * @CreateTime: 2020-02-22 21:05
 * @Description: 套餐数据层接口
 */
public interface MenuDao {

    /**
     * 查询所有套餐
     * @return
     */
    List<Menu> findAll();

    Page<Menu> selectByCondition(@Param("queryString") String queryString);

    void add(Menu menu);

    Long countCheckItemsById(@Param("id") Integer id);

    void deleteById(@Param("id") Integer id);

    Menu findById(@Param("id") Integer id);

    void edit(Menu menu);
}
